<?php

namespace App\Models;

use App\Admin\Repositories\SwtChain;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class SwtNetworkChain extends Model
{
    use HasFactory;

    use HasDateTimeFormatter;

    protected $table = 'swt_network_chains';

    protected $guarded = [];

    public function network()
    {
        return $this->belongsTo(SwtNetwork::class, 'network_id');
    }

    public function chain()
    {
        return $this->belongsTo(SwtMarketChains::class, 'chain_id');
    }
}
